package gui;

import java.awt.BorderLayout;
import java.awt.Panel;

import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;

public class ZoekBoekPanel extends Panel
{

	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;

	public ZoekBoekPanel(JFrame contentPane)
	{
		Panel pnlZoekBoek = this;
		contentPane.getContentPane().add(pnlZoekBoek, "name_343828363438601");
        pnlZoekBoek.setLayout(new BorderLayout(0, 0));
		
		Panel pnlZoekBoekKnop = new Panel();
		contentPane.getContentPane().add(pnlZoekBoekKnop, BorderLayout.SOUTH);
		
		JButton btnZoek = new JButton("Zoek");
		pnlZoekBoekKnop.add(btnZoek);
		
		Panel pnlZoekBoekTitel = new Panel();
		contentPane.getContentPane().add(pnlZoekBoekTitel, BorderLayout.NORTH);
		
		JLabel lblZoekInCatalogus = new JLabel("Zoek in de Catalogus");
		pnlZoekBoekTitel.add(lblZoekInCatalogus);
		
		Panel pnlZoekBoekBody = new Panel();
		contentPane.getContentPane().add(pnlZoekBoekBody, BorderLayout.CENTER);
		
		JLabel lblTitel = new JLabel("Titel");
		
		JLabel lblAuteur = new JLabel("Auteur");
		
		JLabel lblOmschrijving = new JLabel("Omschrijving");
		
		JLabel lblGenre = new JLabel("Genre");
		
		JComboBox comboGenre = new JComboBox();
		
		textField = new JTextField();
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		
		JLabel lblVoornaam = new JLabel("Voornaam");
		
		JLabel lblTussenvoegsel = new JLabel("Tussenvoegsel");
		
		JLabel lblAchternaam = new JLabel("Achternaam");
		GroupLayout gl_panel = new GroupLayout(pnlZoekBoek);
		gl_panel.setHorizontalGroup(
			gl_panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
						.addComponent(lblOmschrijving)
						.addComponent(lblGenre)
						.addComponent(lblAuteur)
						.addComponent(lblTitel))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
						.addComponent(textField, GroupLayout.DEFAULT_SIZE, 343, Short.MAX_VALUE)
						.addGroup(gl_panel.createSequentialGroup()
							.addComponent(comboGenre, 0, 141, Short.MAX_VALUE)
							.addGap(202))
						.addComponent(textField_2, GroupLayout.DEFAULT_SIZE, 343, Short.MAX_VALUE)
						.addGroup(gl_panel.createSequentialGroup()
							.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
								.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
								.addComponent(lblVoornaam))
							.addPreferredGap(ComponentPlacement.RELATED)
							.addGroup(gl_panel.createParallelGroup(Alignment.LEADING, false)
								.addComponent(textField_3, 0, 0, Short.MAX_VALUE)
								.addComponent(lblTussenvoegsel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
							.addPreferredGap(ComponentPlacement.RELATED)
							.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
								.addComponent(lblAchternaam)
								.addComponent(textField_4, GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE))))
					.addContainerGap())
		);
		gl_panel.setVerticalGroup(
			gl_panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblTitel)
						.addComponent(textField_2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblVoornaam)
						.addComponent(lblTussenvoegsel)
						.addComponent(lblAchternaam))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblAuteur)
						.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(textField_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(textField_4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblOmschrijving)
						.addComponent(textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblGenre)
						.addComponent(comboGenre, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(55, Short.MAX_VALUE))
		);
		pnlZoekBoek.setLayout(gl_panel);
	}

}
